@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>用户管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="loginName" name="账号/昵称" placeholder="账号"/>
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="userPhone" name="用户手机号" placeholder="用户手机号"/>
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="tuiPhone" name="推荐人电话" placeholder="推荐人电话"/>
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="tuiName" name="推荐人姓名" placeholder="推荐人姓名"/>
                            </div>
                            <div class="col-sm-3">
                                <#SelectCon id="userType" name="角色类型" >
                                    <option value="-1">全部</option>
                                    <option value="0">普通</option>
                                    <option value="1">主管</option>
                                    <option value="2">经理</option>
                                </#SelectCon>
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="Users.search()"/>
                                 @if(shiro.hasPermission("/users/add")){
                               	 	<#button name="添加" icon="fa-plus" clickFun="Users.openAddUsers()"/>
	                            @}
	                            @if(shiro.hasPermission("/users/update")){
	                                <#button name="修改" icon="fa-edit" clickFun="Users.openUsersDetail()" space="true"/>
	                            @}
	                            @if(shiro.hasPermission("/users/delete")){
	                                <#button name="删除" icon="fa-remove" clickFun="Users.delete()" space="true"/>
	                            @}
                            </div>
                        </div>
                        <div class="hidden-xs" id="UsersTableToolbar" role="group">
                        </div>
                        <#table id="UsersTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/huamao/users/users.js"></script>
@}
